# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
 
pkgname=psutils
pkgver=2.05
pkgrel=1
arch=('any')
pkgdesc="A set of postscript utilities"
url="https://github.com/rrthomas/psutils"
license=('GPL3')
depends=('glibc' 'ghostscript' 'perl' 'perl-ipc-run3' 'paper')
options=('!makeflags')
source=("https://github.com/rrthomas/psutils/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('1ab103210baf139789f9e049165088d08ad041fb9f28d4bdc2430e5773b63346')

build() {
  cd ${pkgname}-${pkgver}
  
  export CFLAGS="$CFLAGS -DPAPER=\\\"letter\\\" -DUNIX -Wall" \
  export CCFLAGS="$LDFLAGS"

  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
